/*
* @Author: Lee
* @Date:   2018-07-19 13:05:57
* @Last Modified by:   Lee-kanghua
* @Last Modified time: 2018-07-28 18:21:20
*/
import req from '@/utils/req'

// const MODULE_URL = process.env.BASE_API_process;


//新建
export function createRow(obj) {
  return req.post('/factory/batching/create',obj);
}

//修改
export function editRow(obj) {
  return req.post('/factory/batching/update',obj);
}

//删除
export function deleteRows(id) {
  return req.post('/factory/batching/delete?id='+id)
}

//根据配料单号，配料单名称，分页查询BOM清单
export function batchings(obj) {
  return req.post('/factory/batching/batchings',obj)
}
//分页查询BOM清单
export function getList(obj) {
  return req.post('/factory/batching/list',obj)
}
//查询BOM清单的物料列表
export function batMateriels(obj) {
  return req.post('/factory/batching/batchingMateriels',obj)
}

//根据工艺路径工序id查询BOM清单和物料清单
export function queryByPathProcessId(obj) {
  return req.post('/factory/batching/queryByPathProcessId',obj)
}


// //新建
// export function createRow(obj) {
//   return req.post(MODULE_URL+'/factory/batching/create',obj);
// }

// //修改
// export function editRow(obj) {
//   return req.post(MODULE_URL+'/factory/batching/update',obj);
// }

// //删除
// export function deleteRows(id) {
//   return req.post(MODULE_URL+'/factory/batching/delete?id='+id)
// }

// //根据配料单号，配料单名称，分页查询BOM清单
// export function batchings(obj) {
//   return req.post(MODULE_URL+'/factory/batching/batchings',obj)
// }
// //分页查询BOM清单
// export function getList(obj) {
//   return req.post(MODULE_URL+'/factory/batching/list',obj)
// }
// //查询BOM清单的物料列表
// export function batMateriels(obj) {
//   return req.post(MODULE_URL+'/factory/batching/batchingMateriels',obj)
// }

// //根据工艺路径工序id查询BOM清单和物料清单
// export function queryByPathProcessId(obj) {
//   return req.post(MODULE_URL+'/factory/batching/queryByPathProcessId',obj)
// }